package com.sora.sora.common.model.param;

import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class CommentParam {

    @Min(value = 1, message = "非法id", groups = UpdateComment.class)
    private int id;

    @NotBlank(message = "评论内容不能为空")
    private String content;

    @Min(value = 1, message = "非法uid")
    private int uid;

    @Min(value = 1, message = "非法文章id")
    private int topicId;

    @Min(value = 0, message = "非法文章类型")
    private int topicType;

    public interface CreateComment {}

    public interface UpdateComment {}
}
